package com.eorchis.module.loginauthentication.domain;

import java.io.Serializable;
import java.util.Date;

import com.eorchis.module.security.cas.domain.Role;

/***************************
 * @description:数据库uum_admin中视图UUM_SYS_DEP_SYSROLE_VIEW的实体类
 * file:sysDepSysRole.java
 * @author Rongr
 *date:2011-09-28
 **************************/

public class SysDepSysRoleView implements Serializable{
	private static final long serialVersionUID = 1L;
	
	public final static int ACTIVE_ENABLED = 1; 
	public final static int ACTIVE_DISABLED = 0;
	
	
	private Integer systemID;//系统编号
	private String systemName;//系统名称
	private String systemUrl;//系统访问路径
	private Integer roleID;//角色编号
	private String roleCode;//角色编码
	private String roleName;//角色名称
	private Integer depID;//部门编号
	private Integer parentID;//父部门编号
	private String depName;//部门名称
	private String depShortName;//部门简码
	private String depCode;//部门编码
	private Integer orderNum;//排序序号
	private String depKindCode;//部门性质类别编码
	private String treePath;//树路径
	private Integer reportDepId;//统计归属部门
	private Date lastOprateTime;//最后操作时间
	private Integer userId;//用户编号
	private Integer activeState;//活动状态
	private String loginId;//登陆编号
	private String password;//用户密码
	private String userName;//用户名称
	private String email;//用户邮箱
	private String userCode;//用户编码
	private Integer examState;//考核状态
	private Integer adminState;//管理员状态
	private Integer studentState;//学员状态
	private Integer teacherState;//教师状态
	private Integer availabilityState;//报名状态
	private Integer viewState;//显示状态
	private String guid;//GUID
	private Integer contolScopeId;//管理范围编号
	private Integer controlScopeId;//管理范围编码
	private Integer subordinatState;//直属状态
	private Integer ID;//系统角色与管理范围关系ID
	private String countiesCoding; // 区县编码 zqt 2013.01.06
	
	public String getGuid() {
		return guid;
	}



	public Integer getContolScopeId() {
		return contolScopeId;
	}



	public void setContolScopeId(Integer contolScopeId) {
		this.contolScopeId = contolScopeId;
	}



	public void setGuid(String guid) {
		this.guid = guid;
	}



	public Integer getViewState() {
		return viewState;
	}



	public void setViewState(Integer viewState) {
		this.viewState = viewState;
	}



	
	
	
	
	public Integer getSystemID() {
		return systemID;
	}



	public void setSystemID(Integer systemID) {
		this.systemID = systemID;
	}



	public String getSystemName() {
		return systemName;
	}



	public void setSystemName(String systemName) {
		this.systemName = systemName;
	}



	public String getSystemUrl() {
		return systemUrl;
	}



	public void setSystemUrl(String systemUrl) {
		this.systemUrl = systemUrl;
	}



	public Integer getRoleID() {
		return roleID;
	}



	public void setRoleID(Integer roleID) {
		this.roleID = roleID;
	}



	public String getRoleCode() {
		return roleCode;
	}



	public void setRoleCode(String roleCode) {
		this.roleCode = roleCode;
	}



	public String getRoleName() {
		return roleName;
	}



	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}



	public Integer getDepID() {
		return depID;
	}



	public void setDepID(Integer depID) {
		this.depID = depID;
	}



	public Integer getParentID() {
		return parentID;
	}



	public void setParentID(Integer parentID) {
		this.parentID = parentID;
	}



	public String getDepName() {
		return depName;
	}



	public void setDepName(String depName) {
		this.depName = depName;
	}



	public String getDepShortName() {
		return depShortName;
	}



	public void setDepShortName(String depShortName) {
		this.depShortName = depShortName;
	}



	public String getDepCode() {
		return depCode;
	}



	public void setDepCode(String depCode) {
		this.depCode = depCode;
	}



	public Integer getOrderNum() {
		return orderNum;
	}



	public void setOrderNum(Integer orderNum) {
		this.orderNum = orderNum;
	}



	public String getDepKindCode() {
		return depKindCode;
	}



	public void setDepKindCode(String depKindCode) {
		this.depKindCode = depKindCode;
	}



	public String getTreePath() {
		return treePath;
	}



	public void setTreePath(String treePath) {
		this.treePath = treePath;
	}



	public Integer getReportDepId() {
		return reportDepId;
	}



	public void setReportDepId(Integer reportDepId) {
		this.reportDepId = reportDepId;
	}



	public Date getLastOprateTime() {
		return lastOprateTime;
	}



	public void setLastOprateTime(Date lastOprateTime) {
		this.lastOprateTime = lastOprateTime;
	}



	public Integer getUserId() {
		return userId;
	}



	public void setUserId(Integer userId) {
		this.userId = userId;
	}



	public Integer getActiveState() {
		return activeState;
	}



	public void setActiveState(Integer activeState) {
		this.activeState = activeState;
	}



	public String getLoginId() {
		return loginId;
	}



	public void setLoginId(String loginId) {
		this.loginId = loginId;
	}



	public String getPassword() {
		return password;
	}



	public void setPassword(String password) {
		this.password = password;
	}



	public String getUserName() {
		return userName;
	}



	public void setUserName(String userName) {
		this.userName = userName;
	}



	public String getEmail() {
		return email;
	}



	public void setEmail(String email) {
		this.email = email;
	}



	public String getUserCode() {
		return userCode;
	}



	public void setUserCode(String userCode) {
		this.userCode = userCode;
	}



	public Integer getExamState() {
		return examState;
	}



	public void setExamState(Integer examState) {
		this.examState = examState;
	}



	public Integer getAdminState() {
		return adminState;
	}



	public void setAdminState(Integer adminState) {
		this.adminState = adminState;
	}



	public Integer getStudentState() {
		return studentState;
	}



	public void setStudentState(Integer studentState) {
		this.studentState = studentState;
	}



	public Integer getTeacherState() {
		return teacherState;
	}



	public void setTeacherState(Integer teacherState) {
		this.teacherState = teacherState;
	}



	public Integer getAvailabilityState() {
		return availabilityState;
	}



	public void setAvailabilityState(Integer availabilityState) {
		this.availabilityState = availabilityState;
	}



	public Integer getControlScopeId() {
		return controlScopeId;
	}



	public void setControlScopeId(Integer controlScopeId) {
		this.controlScopeId = controlScopeId;
	}



	public Integer getSubordinatState() {
		return subordinatState;
	}



	public void setSubordinatState(Integer subordinatState) {
		this.subordinatState = subordinatState;
	}



	public Integer getID() {
		return ID;
	}



	public void setID(Integer iD) {
		ID = iD;
	}

	

	public String getCountiesCoding() {
		return countiesCoding;
	}



	public void setCountiesCoding(String countiesCoding) {
		this.countiesCoding = countiesCoding;
	}



	public boolean equals(Object obj){
        if(null == obj){
            return false;
        }
        if(!(obj instanceof Role)){
            return false;
        } else{
        	Role role = (Role) obj;
            if(null == this.getRoleID() || null == role.getRoleID()){
                return false;
            } else{
                return(this.getRoleID().equals(role.getRoleID()));
            }
        }
	}
	
	@Override
	public String toString() {
		return systemID+""+roleID;
	}
}
